<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.itcc.dao.*,java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测试1</title>
</head>
<body>
	<table border="0">
		<tr>
			<td>用户名</td>
			<td>密码</td>
			<td>email</td>
		</tr>
		<%
			ArrayList<User> list = new ArrayList<User>();
			list = DBUtil.search();
			int i = 0;
			for (i = 0; i < list.size(); i++) {
				User user = (User)list.get(i);
		%>
			<tr>
				<td><%=user.getUsername() %></td>
				<td><%=user.getPassword() %></td>
				<td><%=user.getEmail() %></td>
			</tr>
		<%
			}
		%>
	</table>

</body>
</html>